﻿package mortal.game.view.lotteryDraw
{
    import Message.Public.*;
    import extend.language.*;
    import flash.geom.*;
    import flash.utils.*;
    import mortal.game.cache.*;
    import mortal.game.resource.*;

    public class lotteryDrawConst extends Object
    {
        public static const startPos:Point = new Point(101, 182);
        public static const tabDataArray:Array = Language.getArray(90200);
        public static const tabOpenLevelArray:Array = [GameDefConfig.instance.getSystemOpenLevel(85), GameDefConfig.instance.getSystemOpenLevel(86), GameDefConfig.instance.getSystemOpenLevel(91)];
        public static const showItemArray1:Array = [[353, 23], [417, 53], [451, 120], [441, 185], [397, 245], [327, 290], [247, 290], [167, 290], [87, 290], [21, 245], [-23, 185], [-33, 120], [1, 53], [67, 23]];
        public static const tabPanelDataArray:Array = [{level:tabOpenLevelArray[0], showItemArray:showItemArray1, keyName:Language.getString(90417), keyID:180200000, coinType:EPriceUnit._EPriceUnit50GoldPoint, coinLabel:Language.getString(90420), splBlockUrl:ImagesConst.lotteryDrawSkillBlock}, {level:tabOpenLevelArray[1], showItemArray:showItemArray1, keyName:Language.getString(90418), keyID:180200001, coinType:EPriceUnit._EPriceUnit70GoldPoint, coinLabel:Language.getString(90421), splBlockUrl:ImagesConst.lotteryDrawJewelBlock}, {level:tabOpenLevelArray[2], showItemArray:showItemArray1, keyName:Language.getString(90419), keyID:180200002, coinType:EPriceUnit._EPriceUnit90GoldPoint, coinLabel:Language.getString(90422), splBlockUrl:ImagesConst.lotteryDrawJewelBlock}];
        private static var _diamondIDDic:Dictionary;
        public static const showItemNum:int = 14;
        private static var _targetItemDic:Dictionary;
        private static var _anjinPartsDic:Dictionary;
        private static var _anjinSuitIDDic:Dictionary;

        public function lotteryDrawConst()
        {
            return;
        }// end function

        public static function get diamondIDDic() : Dictionary
        {
            if (!_diamondIDDic)
            {
                _diamondIDDic = new Dictionary();
                _diamondIDDic[10] = 180080202;
                _diamondIDDic[30] = 180080203;
                _diamondIDDic[100] = 180080204;
            }
            return _diamondIDDic;
        }// end function

        public static function get targetItemDic() : Dictionary
        {
            if (_targetItemDic == null)
            {
                _targetItemDic = new Dictionary();
                _targetItemDic[ETargetType._ETargetTypeMountRank] = {nextTarget:ETargetType._ETargetTypePetGrowth, replaceArr:[410240001, 410390001, 410010209, 410010210, 410010211, 410010212, 410010221, 410010222, 410010223, 410010224]};
                _targetItemDic[ETargetType._ETargetTypePetGrowth] = {nextTarget:ETargetType._ETargetTypeWing, replaceArr:[410120001, 410520001, 410010017, 410010018, 410010019, 410010020, 410010029, 410010030, 410010031, 410010032]};
                _targetItemDic[ETargetType._ETargetTypeWing] = {nextTarget:ETargetType._ETargetTypeFashion, replaceArr:[410290001, 410360001, 410010409, 410010410, 410010411, 410010412, 410010421, 410010422, 410010423, 410010424]};
                _targetItemDic[ETargetType._ETargetTypeFashion] = {nextTarget:ETargetType._ETargetTypeWeaponFashion, replaceArr:[410300001, 410370001, 410010309, 410010310, 410010311, 410010312, 410010321, 410010322, 410010323, 410010324]};
                _targetItemDic[ETargetType._ETargetTypeWeaponFashion] = {nextTarget:ETargetType._ETargetTypeFightSoul, replaceArr:[410400001, 410380001, 410010259, 410010260, 410010261, 410010262, 410010271, 410010272, 410010273, 410010274]};
                _targetItemDic[ETargetType._ETargetTypeFightSoul] = {nextTarget:ETargetType._ETargetTypeLawPosition, replaceArr:[410410001, 410430001, 410010359, 410010360, 410010361, 410010362, 410010371, 410010372, 410010373, 410010374]};
                _targetItemDic[ETargetType._ETargetTypeLawPosition] = {nextTarget:ETargetType._ETargetTypeDragonSoul, replaceArr:[410440001, 410460001, 410010505, 410010506, 410010507, 410010508, 410010521, 410010522, 410010523, 410010524]};
                _targetItemDic[ETargetType._ETargetTypeDragonSoul] = {nextTarget:ETargetType._ETargetTypeHolyBook, replaceArr:[410470001, 410490001, 410010459, 410010460, 410010461, 410010462, 410010471, 410010472, 410010473, 410010474]};
                _targetItemDic[ETargetType._ETargetTypeHolyBook] = {nextTarget:ETargetType._ETargetTypeWarShield, replaceArr:[410550001, 410580001, 410010555, 410010556, 410010557, 410010558, 410010571, 410010572, 410010573, 410010574]};
                _targetItemDic[ETargetType._ETargetTypeWarShield] = {nextTarget:ETargetType._ETargetTypeBeastSoul, replaceArr:[410560001, 410590001, 410010605, 410010606, 410010607, 410010608, 410010621, 410010622, 410010623, 410010624]};
                _targetItemDic[ETargetType._ETargetTypeBeastSoul] = {nextTarget:ETargetType._ETargetTypeMountRank, replaceArr:[410570001, 410600001, 410010655, 410010656, 410010657, 410010658, 410010671, 410010672, 410010673, 410010674]};
            }
            return _targetItemDic;
        }// end function

        public static function get anjinPartsDic() : Dictionary
        {
            if (!_anjinPartsDic)
            {
                _anjinPartsDic = new Dictionary();
            }
            _anjinPartsDic[ECareer._ECareerWarrior] = [100011301, 100021301, 100031301, 100041301, 100051301, 100061301, 100071301, 100081301, 100011302, 100021302, 100031302, 100041302, 100051302, 100061302, 100071302, 100081302, 100011303, 100021303, 100031303, 100041303, 100051303, 100061303, 100071303, 100081303];
            _anjinPartsDic[ECareer._ECareerArcher] = [100011311, 100021311, 100031311, 100041311, 100051311, 100061311, 100071311, 100081311, 100011312, 100021312, 100031312, 100041312, 100051312, 100061312, 100071312, 100081312, 100011313, 100021313, 100031313, 100041313, 100051313, 100061313, 100071313, 100081313];
            _anjinPartsDic[ECareer._ECareerMage] = [100011321, 100021321, 100031321, 100041321, 100051321, 100061321, 100071321, 100081321, 100011322, 100021322, 100031322, 100041322, 100051322, 100061322, 100071322, 100081322, 100011323, 100021323, 100031323, 100041323, 100051323, 100061323, 100071323, 100081323];
            return _anjinPartsDic;
        }// end function

        private static function get anjinSuitIDDic() : Dictionary
        {
            if (!_anjinSuitIDDic)
            {
                _anjinSuitIDDic = new Dictionary();
                _anjinSuitIDDic[ECareer._ECareerWarrior] = 10410;
                _anjinSuitIDDic[ECareer._ECareerArcher] = 20410;
                _anjinSuitIDDic[ECareer._ECareerMage] = 30410;
            }
            return _anjinSuitIDDic;
        }// end function

        public static function getSelfAnjinSuitID() : int
        {
            return anjinSuitIDDic[Cache.instance.role.entityInfo.career];
        }// end function

    }
}
